Tag: static analysis

april fool baselining ci circle ci code quality code review conference talk decoupling generics gerrit git legacy open source phpstan rector sarb software design static analysis symfony testing

Talks

Introducing static analysis tools to legacy projects

Tips on how to use static analysis tools with legacy projects

Custom PHPStan Rules: Automate Standards and Save Time

PHPStan increases code quality and reduces bugs. Learn how custom rules amplify these benefits.

Extending the PHP Language

Learn how to implement new language features using static analysis.

Getting the most from static analysis

Learn how to write code to get the most from static analysis tools, so you reduce the bug count on projects you're working on.

Practical Static Analysis

Static Analysis can drastically reduce the bug count in your codebase. This talk gives practical advice on integrating static analysis into your development workflow.

Writing custom PHPStan rules (Tutorial)

Workshop to create your custom PHPStan rules

Mastering automated refactoring with custom Rector rules (Tutorial)

Workshop to create your custom Rector rules

Articles

Adding PHPStan to existing projects: Sell the dream, manage the expectations

June 23rd 2023

This is the first part of a 4 part series of articles about adding PHPStan to existing projects. First we'll deal with team members who might object.

Introducing the Friend attribute (example 1)

September 27th 2025

Learn how the Friend attribute can be used to enforce the usage of creational design patterns.

Introducing the InjectableVersion attribute

March 3rd 2026

Learn how the InjectableVersion attribute ensures that correct interface of class is used in Dependency Injection.

Introducing the MustUseResult attribute

October 5th 2025

Learn how the MustUseResult attribute can prevent coding mistakes.

Introducing the NamespaceVisibility attribute

October 21st 2025

Learn how the NamespaceVisibility attribute emulates the missing package visibility modifier.

Introducing the PHP Language Extensions Library

September 14th 2025

It's possible to use static analysis to emulate new language features in PHP. This article examines how, and introduces the PHP Language Extension Library.

Introducing the RestrictTraitTo attribute

February 26th 2026

Learn how the RestrictTraitTo attribute ensures that traits are used correctly.

A static analysis first approach to RFCs

March 8th 2026

Where appropriate should PHP updates start off in static analysis world before becoming part of the PHP language?

Introducing the TestTag attribute

November 28th 2025

Learn how the TestTag attribute helps with testing.